import request from '@/utils/request'
import qs from 'qs'

export const fileToWords = (fileType, file, userName) =>
    request({
        url: '/api/fileToWords',
        method: 'POST',
        headers: { 'content-type': 'multipart/form-data' },
        data: qs.stringify({
            fileType: fileType,
            file: file,
            userName: userName
        }),
    })
